import { axios } from '@/utils/request'

/**
 * 获取列表
 * @param {*} params
 */
export function list (params) {
  return axios({
    url: 'industry/index',
    method: 'get',
    params
  })
}

/**
 * 新增记录
 * @param {*} data
 */
export function create (data) {
  return axios({
    url: 'industry/create',
    method: 'post',
    data: data
  })
}

/**
 * 编辑记录
 * @param {*} data
 */
export function update (data) {
  return axios({
    url: 'industry/update',
    method: 'post',
    data: data
  })
}

/**
 * 删除记录
 * @param {*} data
 */
export function deleted (data) {
  return axios({
    url: 'industry/delete',
    method: 'delete',
    data: data
  })
}
